<?php
namespace Admin\Controller;
use Think\Controller;
class BaseController extends Controller {
    public function _initialize(){
        if($_SESSION['user']==''){
            $this->redirect('Login/login');
        }
    }
    public function out(){
            session_unset();//释放
        session_destroy(); // 清除服务器的sesion文件
        $this->redirect ( 'Login/login' );
    }
}